package com.bupt.cosmfl.cosmflweb.constant;

import lombok.AllArgsConstructor;

/**
 * 封装Http响应码
 */
@AllArgsConstructor
public enum ResponseCode {

    SUCCESS(200, "操作成功"),
    ERROR(500, "服务器错误"),
    FORBIDDEN(403, "没有权限");

    private Integer code;
    private String message;

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
